const { testFc, name } = require('./index.js');

describe(name, () => {
  test('测试用例1', () => {
    expect(testFc([1, 2, 3])).toEqual([1, 2, 4]);
  });

  test('测试用例2', () => {
    expect(testFc([4, 3, 2, 1])).toEqual([4, 3, 2, 2]);
  });

  test('测试用例3: 进位', () => {
    expect(testFc([9])).toEqual([1, 0]);
  });

  test('测试用例4', () => {
    expect(testFc([6, 1, 4, 5, 3, 9, 0, 1, 9, 5, 1, 8, 6, 7, 0, 5, 5, 4, 3])).toEqual([
      6, 1, 4, 5, 3, 9, 0, 1, 9, 5, 1, 8, 6, 7, 0, 5, 5, 4, 4,
    ]);
  });
});
